/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.business.customer.manage.repository.mapper;

import info.peigen.hotpot.business.customer.core.repository.entity.CustomerLogEntity;
import info.peigen.hotpot.component.data.repository.beetlsql.mapper.AbstractBeetlSqlManageMapper;
import org.beetl.sql.mapper.annotation.Select;
import org.beetl.sql.mapper.annotation.Sql;
import org.beetl.sql.mapper.annotation.Update;

/**
 * <b>(CustomerLogManageMapper)</b>
 * 管理后台 "客户登录日志" 数据库映射服务
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023-09-08
 */
@SuppressWarnings("unused")
public interface CustomerLogManageMapper extends AbstractBeetlSqlManageMapper<CustomerLogEntity> {

    // 索引[partner_id]
    @Sql("select * from customer_log where partner_id = ?")
    @Select
    CustomerLogEntity findByPartnerId(String partnerId);

    @Sql("delete from customer_log where partner_id = ?")
    @Update
    void deleteByPartnerId(String partnerId);
}